<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUserBindBankCardExceptions extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('user_bind_card_exceptions', function (Blueprint $table) {
            $table->charset = 'utf8';
            $table->collation = 'utf8_general_ci';
            $table->comment = '用户绑卡异常表';
            $table->increments('id');
            $table->string('code',10)->comment('绑卡返回值');
            $table->string('message')->comment('返回信息');
            $table->string('card_num')->default('')->comment('用户银行卡');
            $table->string('cert_num')->default('')->comment('身份证号码');
            $table->string('phone_num')->default('')->comment('银行卡预留号码');
            $table->string('real_name')->default('')->comment('持卡人姓名');
            $table->string('order_num')->default('')->comment('公共平台请求编号');
            $table->string('ip')->default('')->comment('用户请求ip');
            $table->unsignedInteger('user_id')->comment('请求用户id');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('user_bind_card_exceptions');
    }
}
